package com.fz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fz.entity.TPermission;

import java.util.List;


/**
 * <p>
 * 权限菜单表 服务类
 * </p>
 *
 * @author wangyi
 * @since 2024-08-17
 */
public interface TPermissionService extends IService<TPermission> {

    List<TPermission> getList();

    Boolean add(String name, String description, String path,Integer level,Integer parentId, Integer type);

    Boolean update(Long id, String name, String description, String path,Integer level,Integer parentId, Integer type);

    Boolean del(Long id);

    List<TPermission> getByUserId(Long userId);
}

